process_transfer_output

function process_transfer_output(o: xfer_output, idx: integer, available_assets: map<asset, integer>)